package com.sxbbc.common.core.entity.jz;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 平台购物定时配置表
 * </p>
 *
 * @author leehao
 * @since 2019-04-29
 */
@TableName("info_shopping")
public class InfoShopping extends Model<InfoShopping> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 自动退款时间(单位天), -1表示不需要自动退款
     */
    private Integer autoRefund;

    /**
     * 自动收货时间(单位天), -1表示不需要自动收货
     */
    private Integer autoReceived;

    /**
     * 自动交易完成时间(单位天), -1表示不需要自动交易完成
     */
    private Integer autoOver;

    /**
     * 自动取消订单（单位分钟）
     */
    private Integer autoCancel;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getAutoRefund() {
        return autoRefund;
    }

    public void setAutoRefund(Integer autoRefund) {
        this.autoRefund = autoRefund;
    }
    public Integer getAutoReceived() {
        return autoReceived;
    }

    public void setAutoReceived(Integer autoReceived) {
        this.autoReceived = autoReceived;
    }
    public Integer getAutoOver() {
        return autoOver;
    }

    public void setAutoOver(Integer autoOver) {
        this.autoOver = autoOver;
    }
    public Integer getAutoCancel() {
        return autoCancel;
    }

    public void setAutoCancel(Integer autoCancel) {
        this.autoCancel = autoCancel;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "InfoShopping{" +
        "id=" + id +
        ", autoRefund=" + autoRefund +
        ", autoReceived=" + autoReceived +
        ", autoOver=" + autoOver +
        ", autoCancel=" + autoCancel +
        "}";
    }
}
